/*
Template Name: Osahanin - Job Portal & Social Network HTML Template
Author: Askbootstrap
Author URI: https://themeforest.net/user/askbootstrap
Version: 1.0
*/

(function (i, s, o, g, r, a, m) {
    i['GoogleAnalyticsObject'] = r;
    i[r] = i[r] || function () {
        (i[r].q = i[r].q || []).push(arguments)
    }, i[r].l = 1 * new Date();
    a = s.createElement(o),
        m = s.getElementsByTagName(o)[0];
    a.async = 1;
    a.src = g;
    m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');

ga('create', 'UA-120909275-1', 'auto');
ga('send', 'pageview');

$("body").on("contextmenu", function (e) {
    return false;
});
$(document).keydown(function (e) {
    if (e.ctrlKey && (e.keyCode === 67 || e.keyCode === 86 || e.keyCode === 85 || e.keyCode === 117)) {
        return false;
    }
    if (e.which === 123) {
        return false;
    }
    if (e.metaKey) {
        return false;
    }
    //document.onkeydown = function(e) {
    // "I" key
    if (e.ctrlKey && e.shiftKey && e.keyCode == 73) {
        return false;
    }
    // "J" key
    if (e.ctrlKey && e.shiftKey && e.keyCode == 74) {
        return false;
    }
    // "S" key + macOS
    if (e.keyCode == 83 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) {
        return false;
    }
    if (e.keyCode == 224 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) {
        return false;
    }
    // "U" key
    if (e.ctrlKey && e.keyCode == 85) {
        return false;
    }
    // "F12" key
    if (event.keyCode == 123) {
        return false;
    }
});

(function ($) {
    "use strict"; // Start of use strict

// Tooltip
    $('[data-toggle="tooltip"]').tooltip();

// Osahan Slider
    $('.osahan-slider').slick({
        centerMode: true,
        centerPadding: '30px',
        slidesToShow: 2,
        responsive: [
            {
                breakpoint: 768,
                settings: {
                    arrows: false,
                    centerMode: true,
                    centerPadding: '40px',
                    slidesToShow: 1
                }
            },
            {
                breakpoint: 480,
                settings: {
                    arrows: false,
                    centerMode: true,
                    centerPadding: '40px',
                    slidesToShow: 1
                }
            }
        ]
    });

})(jQuery); // End of use strict
